#define _CRT_SECURE_NO_WARNINGS
#include"Slist.h"

void test1()
{
	SListNode* plist = NULL;
	//SListNode list;
	SListPushFront(&plist, 1);
	SListPushFront(&plist, 2);
	SListPushFront(&plist, 3);
	SListPushFront(&plist, 4);
	SListPushFront(&plist, 5);
	SListPrint(plist);
	//SListPopBack(&plist);
	//SListPopBack(&plist);
	//SListPopBack(&plist);
	//SListPopBack(&plist);
	//SListPopBack(&plist);
	//SListPopFront(&plist);
	//SListPrint(plist);
	//SListPopFront(&plist);
	//SListPopFront(&plist);
	//SListPopFront(&plist);
	//SListPrint(plist);
	//SListPopFront(&plist);
	//SListPopFront(&plist);
	//SListPopFront(&plist);
	//SListPrint(plist);
	//SListNode* find1 = SListFind(plist, 1);
	//SListInsertAfter(find1, 11);
	//SListPrint(plist);
	//SListNode* find2 = SListFind(plist, 2);
	//SListEraseAfter(find2);
	//SListPrint(plist);
	//SListInsert(&plist, find2, 90);
	//SListPrint(plist);
	SListNode* find3 = SListFind(plist, 5);
	SListErase(&plist, find3);
	SListPrint(plist);

	SListDestroy(&plist);
	//SListPrint(plist);

}

int main()
{
	test1();
	return 0;
}